from pydantic import BaseModel
from typing import List


# 定义单个数据项模型
class Factor(BaseModel):
    id: int = None
    name: str = None
    info: str = None
    content: str


class WsRequest(BaseModel):
    factors: List[Factor]
    period: str